<template>
  <div class="base-chart">
    <l-echart ref="elChart" :custom-style="style"></l-echart>
  </div>
</template>

<script>
import * as echarts from "@/uni_modules/lime-echart/static/echarts.min";

export default {
  props: {
    style: {
      type: String,
      default: "",
    },

    options: {
      type: Object,
      default: {},
    },
  },

  data() {
    return {};
  },

  mounted() {
    this.$refs.elChart.init(echarts, (chart) => {
      chart.setOption(this.options);
    });
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
.base-chart {
}
</style>
